package com.cykj.pos.mapper;

import com.cykj.pos.domain.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cykj.pos.domain.dto.TransactionDetailsDTO;

import java.util.List;

/**
 * 分润记录Mapper接口
 *
 * @author weijianbo
 * @date 2025-01-22
 */
public interface AizProfitSharingRecordMapper extends BaseMapper<AizProfitSharingRecord> {
    /**
     * 查询分润今日
     * @param detailsDTO
     * @return
     */
    Double selectShare(TransactionDetailsDTO detailsDTO);

    List<BizMerchantTranStatistics> queryTransRecord(BizMerchantTranStatistics bizMerchantTranStatistics);

    List<BizMerchantTranStatisticsMerchantExport> queryMerchRecord(BizMerchantTranStatisticsMerchantExport bizMerchantTranStatisticsMerchantExport);

    List<BizMerchantTranStatisticsWithdrawalExport> queryWithdrawalRecord(BizMerchantTranStatisticsWithdrawalExport bizMerchantTranStatisticsWithdrawalExport);

    BizMerchantTranStatistics queryCashback(BizMerchantTranStatistics bizMerchantTranStatistics);

    BizMerchantTranStatistics queryData(BizMerchantTranStatistics bizMerchantTranStatistics);

    BizMerchantTranStatistics queryShareMoneyData(BizMerchantTranStatistics bizMerchantTranStatistics);

    BizMerchantTranStatistics queryEquipMoneyData(BizMerchantTranStatistics bizMerchantTranStatistics);

    BizMerchantTranStatistics queryRewardMoneyData(BizMerchantTranStatistics bizMerchantTranStatistics);

    List<Long> getChilds(Long merchId);

    Double getTransAmount(BizMerchantTranStatisticsMerchantExport bizMerchantTranStatisticsMerchantExport);

    Double getShareAmount(BizMerchantTranStatisticsMerchantExport bizMerchantTranStatisticsMerchantExport);

    List<AizProfitSharingRecord> queryList(AizProfitSharingRecord aizProfitSharingRecord);

    List<BizMerchant> queryMyDeptList(BizMerchantTranStatisticsMerchantExport bizMerchantTranStatisticsMerchantExport);
}
